﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
using UnityEngine;

namespace TCC.Framework
{
    /// <summary>
    /// 日志工具
    /// </summary>
    public static class Log
    {
        private readonly static string prefix = "【TCC.Framework】:";
        
        /// <summary>
        /// 普通日志
        /// </summary>
        /// <param name="message"></param>
        public static void Info(this string message)
        {
            Debug.Log($"<color=cyan>{prefix + message}</color>");
        }

        /// <summary>
        /// 警告日志
        /// </summary>
        /// <param name="message"></param>
        public static void Warning(this string message)
        {
            Debug.LogWarning($"<color=yellow>{prefix + message}</color>");
        }

        /// <summary>
        /// 错误日志
        /// </summary>
        /// <param name="message"></param>
        public static void Error(this string message)
        {
            Debug.LogError($"<color=red>{prefix + message}</color>");
        }
    }
}

